<?php 
$name = isset($data->ln->name) ? $data->ln->name : $data->name;
$url = $data->url[0]==='/' ? $data->url : '/'.$data->url;
$url = '/'.Yii::app()->language.$url;
if($data->show_header):
?>
<div class="bl-zag">
	<h2><?php echo $name;?></h2>
</div>
<?php endif; ?>
<div class="blotdel-block">
	<a href="<?php echo $url;?>" eid="<?php echo $data->id?>" ename="file" etype="img" etable="blocks"><?php echo BaseController::material_image(0, $data->file, '192'); ?></a>
</div>